// components/findTeam/teamMate/teamMate.js
import api from '../../../api/index'
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    mate:Object,
    teamID:String
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  attached(){
    var openid = this.data.mate.openid
    var params = {openid}
    api.userInfo.getSkill(params).then(res=>{
      console.log(res)
      this.setData({
        ['mate.skill']:res
      })
    })
  },
  methods: {
    toLookMe: function() {  //查看队长信息，跳转到查看页面
      var openid = this.data.mate.openid
      console.log(openid)
      wx.navigateTo({
        url: '/pages/lookMe/lookMe?openid=' + openid,
      })
    },
  }
})
